﻿var TbRow = document.getElementsByTagName("table");
if (TbRow != null) {
    for (var j = 0; j < TbRow.length; j++) {
        var single = TbRow[j];
        for (var i = 0; i < single.rows.length; i++) {
            if (single.rows[i].rowIndex % 2 == 1) {
                single.rows[i].style.backgroundColor = "";
            }
            else {
                single.rows[i].style.backgroundColor = "#f7f7f7";
            }
        }
    }
}
